package bmatch.tech.todo.model;

/**
 * @program:todo
 * @author:LinJinhao
 * @create:2018-12-28 10:12
 **/
public class Response {
    //响应成功
    public static final int RESPONSE_SUCCESS = 200;

    //响应失败
    public static final int RESPONSE_FAIL = 400;

    //响应码
    private int statusCode;

    //响应信息
    private String message;

    //其他数据
    private Object otherData;


    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getOtherData() {
        return otherData;
    }

    public void setOtherData(Object otherData) {
        this.otherData = otherData;
    }

    @Override
    public String toString() {
        return "Response{" +
                "code=" + statusCode +
                ", message='" + message + '\'' +
                ", data=" + otherData +
                '}';
    }
}
